import Vue from 'vue';
import VueRouter from 'vue-router';

import SellerPage from '@/views/SellerPage.vue';
import TrendPage from '@/views/TrendPage.vue';
import MapPage from '@/views/MapPage.vue';
import ScreenPage from '@/views/ScreenPage.vue';

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screen'
  },
  {
    path: '/screen',
    component: ScreenPage
  },
  {
    path: '/sellerpage',
    component: SellerPage
  },
  {
    path: '/trendpage',
    component: TrendPage
  },
  {
    path: '/mappage',
    component: MapPage
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
